/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lyn
 * Date: 2025-01-19
 * Time: 9:51
 */

class Base{
    int a;  String b;
}
class Derived extends Base{
    int a;  String b;  int c;
    public void method(){
        super.a = 10;//访问从父类中继承下来的a
        this.a = 20;//访问子类中的a，等价于a = 20；
        super.b = "abc";//访问从父类中继承下来的b
        this.b = "def";//访问子类中的b ，等价于b = "def"；
        c = 30;//访问自己子类的c
    }
}

public class text {
}
